// pages/help/index.js
Page({

  data: {
    type: "",
    videoList: [],
    videoMap: {
      1 : [{
        title: "1.手动创建称重",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/fc98ff08-4534-4615-bd13-80d6e51162a1.mp4"
      },{
        title: "2.二次除皮",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/d23ec054-ff5e-4660-860f-5c293ce7d30c.mp4"
      },{
        title: "3.待开价",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/531029d0-ef42-4a21-b699-71432de786a0.mp4"
      },{
        title: "4.结账",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/64f7a26b-e653-402f-a449-92e7054fb356.mp4"
      }],
      2 : [{
        title: "1.创建货主计划",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/f98275b5-3359-47f2-8cf1-b52edb3d8de6.mp4"
      },{
        title: "2.货主发货",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/6c1f98d4-4bc0-4ec8-9566-66601f3947b7.mp4"
      },{
        title: "3.货主结账",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/e344e077-5d1c-4ba7-95f1-4621710385af.mp4"
      }],
      3 : [{
        title: "1.市场添加营收菜品",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/fc71c6a3-b03d-476d-adbf-10fc12469946.mp4"
      },{
        title: "2.市场绑定种植菜品",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/e9d29772-a09a-4186-9bb6-d3154d1858d4.mp4"
      }],
      4 : [{
        title: "1.小工录计件",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/b435a04e-7d81-4e5c-ac54-d3035730435f.mp4"
      },{
        title: "2.小工二次除皮",
        url: "https://asbucket12020.oss-cn-beijing.aliyuncs.com/five-framing/a4a5c973-39aa-4c72-881d-fc19620fd650.mp4"
      }]
    }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    if (options && options.type) {
      this.setData({
        type: options.type,
        videoList: this.data.videoMap[options.type]
      })
    }
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})